package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.RegionInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.RegionInfoService;
import com.the4man.cnbdw.utils.SelectModel;
import com.the4man.framework.model.RegionInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("regionInfoService")
public class RegionInfoServiceImpl extends AbstractService<RegionInfo> implements RegionInfoService {
    @Autowired
    RegionInfoMapper regionInfoMapper;

    public RegionInfoServiceImpl() {
    }

    public List<SelectModel> getRegionInfoSelectData() {
        return this.regionInfoMapper.getRegionInfoSelectData();
    }

    public RegionInfo selectByName(String name) {
        return this.regionInfoMapper.selectByName(name);
    }

    public RegionInfo selectByMName(String id, String name) {
        return this.regionInfoMapper.selectMByName(id, name);
    }
}
